.class public Les/pj0;
.super Ljava/lang/Object;
.source "AdDownloadCompletedEventHandlerImpl.java"

# interfaces
.implements Les/mj0;
.implements Lcom/ss/android/socialbase/appdownloader/c$e;
.implements Les/hm0$b;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/pj0$b;,
        Les/pj0$c;
    }
.end annotation


# static fields
.field private static c:Ljava/lang/String; = "pj0"

.field private static volatile d:Les/pj0;


# instance fields
.field private volatile a:Z

.field private b:J


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/pj0;->a:Z

    .line 3
    invoke-static {p0}, Lcom/ss/android/socialbase/appdownloader/c;->a(Lcom/ss/android/socialbase/appdownloader/c$e;)V

    .line 4
    invoke-static {}, Les/jo0;->b()Les/jo0;

    move-result-object v1

    const-string v2, "check_event_when_app_switch"

    invoke-virtual {v1, v2, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 5
    invoke-static {}, Les/hm0;->c()Les/hm0;

    move-result-object v0

    invoke-virtual {v0, p0}, Les/hm0;->a(Les/hm0$b;)V

    :cond_0
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)I
    .locals 3

    .line 156
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "check_hijack"

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v0

    if-nez v0, :cond_0

    return v1

    .line 157
    :cond_0
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    const-string v2, "sp_ttdownloader_md5"

    invoke-virtual {v0, v2, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const/4 v2, 0x0

    .line 158
    invoke-interface {v0, p1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 159
    invoke-static {p2}, Les/wk0;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 160
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 161
    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    const/4 p1, 0x2

    return p1

    :cond_1
    const/4 p1, 0x1

    return p1

    :cond_2
    return v1
.end method

.method public static a()Les/pj0;
    .locals 2

    .line 4
    sget-object v0, Les/pj0;->d:Les/pj0;

    if-nez v0, :cond_1

    .line 5
    const-class v0, Les/pj0;

    monitor-enter v0

    .line 6
    :try_start_0
    sget-object v1, Les/pj0;->d:Les/pj0;

    if-nez v1, :cond_0

    .line 7
    new-instance v1, Les/pj0;

    invoke-direct {v1}, Les/pj0;-><init>()V

    sput-object v1, Les/pj0;->d:Les/pj0;

    .line 8
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 9
    :cond_1
    :goto_0
    sget-object v0, Les/pj0;->d:Les/pj0;

    return-object v0
.end method

.method private static a(Ljava/util/List;Ljava/lang/String;)Les/zn0;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zn0;",
            ">;",
            "Ljava/lang/String;",
            ")",
            "Les/zn0;"
        }
    .end annotation

    const/4 v0, 0x0

    if-eqz p0, :cond_4

    .line 82
    invoke-interface {p0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_4

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_1

    .line 83
    :cond_0
    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p0

    :cond_1
    :goto_0
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/zn0;

    if-nez v1, :cond_2

    goto :goto_0

    .line 84
    :cond_2
    invoke-virtual {v1}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    return-object v1

    .line 85
    :cond_3
    invoke-virtual {v1}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v2

    .line 86
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v2, p1}, Les/cl0;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    return-object v1

    :cond_4
    :goto_1
    return-object v0
.end method

.method private a(II)Lorg/json/JSONObject;
    .locals 2

    .line 195
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "scene"

    .line 196
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {v0, v1, p2}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p2, "hijack"

    .line 197
    invoke-virtual {v0, p2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 198
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    :goto_0
    return-object v0
.end method

.method public static a(Lorg/json/JSONObject;Les/zn0;)Lorg/json/JSONObject;
    .locals 9

    if-eqz p0, :cond_2

    if-nez p1, :cond_0

    goto :goto_0

    .line 134
    :cond_0
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "download_event_opt"

    .line 135
    invoke-virtual {v0, v2, v1}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    if-nez v0, :cond_1

    return-object p0

    .line 136
    :cond_1
    :try_start_0
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v0

    .line 137
    invoke-virtual {v0}, Ljava/io/File;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/m/f;->c(Ljava/lang/String;)J

    move-result-wide v0

    const-string v2, "available_space"
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    long-to-double v3, v0

    const-wide/high16 v5, 0x4130000000000000L    # 1048576.0

    .line 138
    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    div-double v5, v3, v5

    :try_start_1
    invoke-virtual {p0, v2, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    .line 139
    invoke-virtual {p1}, Les/zn0;->c0()J

    move-result-wide v5

    const-wide/16 v7, 0x0

    cmp-long p1, v0, v7

    if-lez p1, :cond_2

    cmp-long p1, v5, v7

    if-lez p1, :cond_2

    const-string p1, "available_space_ratio"
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    long-to-double v0, v5

    .line 140
    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v3, v0

    :try_start_2
    invoke-virtual {p0, p1, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    .line 141
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_2
    :goto_0
    return-object p0
.end method

.method public static a(Lorg/json/JSONObject;Les/zn0;Z)Lorg/json/JSONObject;
    .locals 10

    if-eqz p0, :cond_f

    if-nez p1, :cond_0

    goto/16 :goto_b

    .line 87
    :cond_0
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "download_event_opt"

    .line 88
    invoke-virtual {v0, v2, v1}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    if-nez v0, :cond_1

    return-object p0

    :cond_1
    :try_start_0
    const-string v0, "download_id"

    .line 89
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "name"

    .line 90
    invoke-virtual {p1}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "url"

    .line 91
    invoke-virtual {p1}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "download_time"

    .line 92
    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v2

    invoke-virtual {p0, v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "cur_bytes"

    .line 93
    invoke-virtual {p1}, Les/zn0;->z()J

    move-result-wide v2

    invoke-virtual {p0, v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "total_bytes"

    .line 94
    invoke-virtual {p1}, Les/zn0;->c0()J

    move-result-wide v2

    invoke-virtual {p0, v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "network_quality"

    .line 95
    invoke-virtual {p1}, Les/zn0;->e0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 96
    invoke-static {}, Lcom/ss/android/socialbase/downloader/i/g;->b()Lcom/ss/android/socialbase/downloader/i/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ss/android/socialbase/downloader/i/g;->a()Lcom/ss/android/socialbase/downloader/i/h;

    move-result-object v0

    const-string v2, "current_network_quality"

    .line 97
    invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "only_wifi"

    .line 98
    invoke-virtual {p1}, Les/zn0;->e1()Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_2

    const/4 v2, 0x1

    goto :goto_0

    :cond_2
    const/4 v2, 0x0

    :goto_0
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "need_https_degrade"

    .line 99
    invoke-virtual {p1}, Les/zn0;->j0()Z

    move-result v2

    if-eqz v2, :cond_3

    const/4 v2, 0x1

    goto :goto_1

    :cond_3
    const/4 v2, 0x0

    :goto_1
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "https_degrade_retry_used"

    .line 100
    invoke-virtual {p1}, Les/zn0;->a1()Z

    move-result v2

    if-eqz v2, :cond_4

    const/4 v2, 0x1

    goto :goto_2

    :cond_4
    const/4 v2, 0x0

    :goto_2
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "chunk_count"

    .line 101
    invoke-virtual {p1}, Les/zn0;->W()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "retry_count"

    .line 102
    invoke-virtual {p1}, Les/zn0;->d()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "cur_retry_time"

    .line 103
    invoke-virtual {p1}, Les/zn0;->m0()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "need_retry_delay"

    .line 104
    invoke-virtual {p1}, Les/zn0;->k0()Z

    move-result v2

    if-eqz v2, :cond_5

    const/4 v2, 0x1

    goto :goto_3

    :cond_5
    const/4 v2, 0x0

    :goto_3
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "backup_url_used"

    .line 105
    invoke-virtual {p1}, Les/zn0;->j()Z

    move-result v2

    if-eqz v2, :cond_6

    const/4 v2, 0x1

    goto :goto_4

    :cond_6
    const/4 v2, 0x0

    :goto_4
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "head_connection_error_msg"

    .line 106
    invoke-virtual {p1}, Les/zn0;->J0()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_7

    invoke-virtual {p1}, Les/zn0;->J0()Ljava/lang/String;

    move-result-object v2

    goto :goto_5

    :cond_7
    const-string v2, ""

    :goto_5
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "need_independent_process"

    .line 107
    invoke-virtual {p1}, Les/zn0;->t()Z

    move-result v2

    if-eqz v2, :cond_8

    const/4 v2, 0x1

    goto :goto_6

    :cond_8
    const/4 v2, 0x0

    :goto_6
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "total_retry_count"

    .line 108
    invoke-virtual {p1}, Les/zn0;->f()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "cur_retry_time_in_total"

    .line 109
    invoke-virtual {p1}, Les/zn0;->g()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "real_download_time"

    .line 110
    invoke-virtual {p1}, Les/zn0;->y0()J

    move-result-wide v4

    invoke-virtual {p0, v0, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "chunk_downgrade_retry_used"

    .line 111
    invoke-virtual {p1}, Les/zn0;->q0()Z

    move-result v2

    if-eqz v2, :cond_9

    const/4 v2, 0x1

    goto :goto_7

    :cond_9
    const/4 v2, 0x0

    :goto_7
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "need_chunk_downgrade_retry"

    .line 112
    invoke-virtual {p1}, Les/zn0;->p0()Z

    move-result v2

    if-eqz v2, :cond_a

    const/4 v2, 0x1

    goto :goto_8

    :cond_a
    const/4 v2, 0x0

    :goto_8
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "failed_resume_count"

    .line 113
    invoke-virtual {p1}, Les/zn0;->a0()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 114
    invoke-virtual {p1}, Les/zn0;->H0()I

    move-result v0

    const-string v2, "preconnect_level"

    .line 115
    invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "retry_schedule_count"

    .line 116
    invoke-virtual {p1}, Les/zn0;->n()I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "rw_concurrent"

    .line 117
    invoke-virtual {p1}, Les/zn0;->o()Z

    move-result v2

    if-eqz v2, :cond_b

    const/4 v2, 0x1

    goto :goto_9

    :cond_b
    const/4 v2, 0x0

    :goto_9
    invoke-virtual {p0, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    if-nez p2, :cond_c

    .line 118
    invoke-virtual {p1}, Les/zn0;->z()J

    move-result-wide v4
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_2

    long-to-double v4, v4

    const-wide/high16 v6, 0x4130000000000000L    # 1048576.0

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v4, v6

    .line 119
    :try_start_1
    invoke-virtual {p1}, Les/zn0;->y0()J

    move-result-wide v6
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_2

    long-to-double v6, v6

    const-wide v8, 0x408f400000000000L    # 1000.0

    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v6, v8

    const-wide/16 v8, 0x0

    cmpl-double p2, v4, v8

    if-lez p2, :cond_c

    cmpl-double p2, v6, v8

    if-lez p2, :cond_c

    div-double/2addr v4, v6

    :try_start_2
    const-string p2, "download_speed"

    .line 120
    invoke-virtual {p0, p2, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    .line 121
    :catch_0
    :try_start_3
    sget-object p2, Les/pj0;->c:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "download speed : "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v2, "MB/s"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_2

    .line 122
    :cond_c
    :try_start_4
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p2

    .line 123
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-virtual {p2, v0}, Lcom/ss/android/socialbase/downloader/downloader/g;->m(I)Z

    move-result p2

    const-string v0, "is_download_service_foreground"

    if-eqz p2, :cond_d

    const/4 v1, 0x1

    .line 124
    :cond_d
    invoke-virtual {p0, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_a

    :catch_1
    move-exception p2

    .line 125
    :try_start_5
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    .line 126
    :goto_a
    invoke-virtual {p1}, Les/zn0;->D()Ljava/util/List;

    move-result-object p2

    if-eqz p2, :cond_e

    const-string p2, "backup_url_count"

    .line 127
    invoke-virtual {p1}, Les/zn0;->D()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-virtual {p0, p2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "cur_backup_url_index"

    .line 128
    invoke-virtual {p1}, Les/zn0;->Z0()I

    move-result v0

    invoke-virtual {p0, p2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    :cond_e
    const-string p2, "clear_space_restart_times"

    .line 129
    invoke-static {}, Les/dk0;->d()Les/dk0;

    move-result-object v0

    invoke-virtual {p1}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/dk0;->b(Ljava/lang/String;)I

    move-result v0

    .line 130
    invoke-virtual {p0, p2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "mime_type"

    .line 131
    invoke-virtual {p1}, Les/zn0;->i0()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, p2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 132
    invoke-static {p0, p1}, Les/pj0;->a(Lorg/json/JSONObject;Les/zn0;)Lorg/json/JSONObject;
    :try_end_5
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_5} :catch_2

    goto :goto_b

    :catch_2
    move-exception p1

    .line 133
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    :cond_f
    :goto_b
    return-object p0
.end method

.method private static a(Les/nj0;)V
    .locals 5

    if-nez p0, :cond_0

    return-void

    .line 145
    :cond_0
    invoke-static {}, Les/dk0;->d()Les/dk0;

    move-result-object v0

    invoke-virtual {v0}, Les/dk0;->a()Landroid/util/LongSparseArray;

    move-result-object v0

    invoke-virtual {p0}, Les/nj0;->k()I

    move-result v1

    int-to-long v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 146
    invoke-virtual {p0}, Les/nj0;->h()Lorg/json/JSONObject;

    move-result-object v1

    .line 147
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 148
    invoke-static {}, Les/dk0;->d()Les/dk0;

    move-result-object v2

    invoke-virtual {v2}, Les/dk0;->a()Landroid/util/LongSparseArray;

    move-result-object v2

    invoke-virtual {p0}, Les/nj0;->k()I

    move-result v3

    int-to-long v3, v3

    invoke-virtual {v2, v3, v4}, Landroid/util/LongSparseArray;->remove(J)V

    if-nez v1, :cond_1

    .line 149
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :cond_1
    :try_start_0
    const-string v2, "finish_reason"

    .line 150
    invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 151
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 152
    :cond_2
    :goto_0
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    invoke-virtual {p0}, Les/nj0;->k()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v0

    .line 153
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Les/pj0;->a(Lorg/json/JSONObject;Les/zn0;Z)Lorg/json/JSONObject;

    .line 154
    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v1, v0}, Les/pj0;->a(Lorg/json/JSONObject;I)V

    .line 155
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v0

    invoke-virtual {v0, v1, p0}, Les/uk0;->a(Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method static synthetic a(Les/pj0;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/pj0;->c(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Les/pj0;Ljava/util/concurrent/ConcurrentHashMap;I)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Les/pj0;->a(Ljava/util/concurrent/ConcurrentHashMap;I)V

    return-void
.end method

.method public static declared-synchronized a(Les/zn0;Les/nj0;)V
    .locals 14
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    const-class v0, Les/pj0;

    monitor-enter v0

    if-eqz p0, :cond_3

    if-nez p1, :cond_0

    goto/16 :goto_0

    .line 27
    :cond_0
    :try_start_0
    invoke-virtual {p1}, Les/nj0;->c()I

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v2, 0x1

    if-eq v1, v2, :cond_1

    .line 28
    monitor-exit v0

    return-void

    .line 29
    :cond_1
    :try_start_1
    invoke-static {p0, p1}, Les/pj0;->b(Les/zn0;Les/nj0;)Ljava/lang/String;

    move-result-object v1

    .line 30
    invoke-static {p1}, Les/pj0;->a(Les/nj0;)V

    .line 31
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {p1, v2, v3}, Les/nj0;->c(J)V

    const/4 v2, 0x2

    .line 32
    invoke-virtual {p1, v2}, Les/nj0;->a(I)V

    .line 33
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v2

    invoke-virtual {v2, p1, p0, v1}, Les/vj0;->a(Les/nj0;Les/zn0;Ljava/lang/String;)V

    .line 34
    invoke-static {}, Les/fl0;->a()Les/fl0;

    move-result-object v2

    invoke-virtual {v2, p0, v1}, Les/fl0;->a(Les/zn0;Ljava/lang/String;)V

    const-string v2, "application/vnd.android.package-archive"

    .line 35
    invoke-virtual {p0}, Les/zn0;->i0()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 36
    invoke-static {}, Les/pj0;->a()Les/pj0;

    move-result-object v2

    invoke-virtual {v2, v1}, Les/pj0;->b(Ljava/lang/String;)V

    .line 37
    invoke-virtual {p1}, Les/nj0;->a()J

    move-result-wide v2

    .line 38
    invoke-static {}, Les/pj0;->a()Les/pj0;

    move-result-object v4

    invoke-virtual {p0}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5, v2, v3}, Les/pj0;->a(Ljava/lang/String;J)V

    .line 39
    invoke-virtual {p1}, Les/nj0;->n()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 40
    invoke-static {}, Les/qj0;->a()Les/qj0;

    move-result-object v3

    invoke-virtual {p0}, Les/zn0;->N0()I

    move-result v2

    int-to-long v4, v2

    invoke-virtual {p1}, Les/nj0;->a()J

    move-result-wide v6

    invoke-virtual {p1}, Les/nj0;->b()J

    move-result-wide v8

    .line 41
    invoke-virtual {p0}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {p1}, Les/nj0;->f()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {p0}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v13

    move-object v10, v1

    .line 42
    invoke-virtual/range {v3 .. v13}, Les/qj0;->a(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 43
    :cond_2
    invoke-virtual {p1}, Les/nj0;->a()J

    move-result-wide v2

    invoke-virtual {p1}, Les/nj0;->f()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, v2, v3, p1, v1}, Les/ek0;->a(Les/zn0;JLjava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 44
    :cond_3
    :goto_0
    invoke-static {}, Les/cl0;->b()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 45
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    goto :goto_2

    :catch_0
    move-exception p0

    .line 46
    :try_start_2
    invoke-static {p0}, Les/cl0;->a(Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 47
    :cond_4
    :goto_1
    monitor-exit v0

    return-void

    :goto_2
    monitor-exit v0

    throw p0
.end method

.method private a(Ljava/util/concurrent/ConcurrentHashMap;I)V
    .locals 9
    .param p1    # Ljava/util/concurrent/ConcurrentHashMap;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Ljava/lang/Long;",
            "Les/nj0;",
            ">;I)V"
        }
    .end annotation

    .line 167
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 168
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    .line 169
    invoke-virtual {p1}, Ljava/util/concurrent/ConcurrentHashMap;->values()Ljava/util/Collection;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_0
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_8

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/nj0;

    .line 170
    iget-object v4, v3, Les/nj0;->q:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 171
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 172
    :cond_1
    invoke-virtual {v3}, Les/nj0;->c()I

    move-result v4

    const/4 v5, 0x1

    if-ne v4, v5, :cond_2

    .line 173
    invoke-virtual {v3}, Les/nj0;->e()J

    move-result-wide v4

    sub-long v4, v1, v4

    const-wide/32 v6, 0xf731400

    cmp-long v8, v4, v6

    if-ltz v8, :cond_0

    .line 174
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 175
    :cond_2
    invoke-virtual {v3}, Les/nj0;->c()I

    move-result v4

    const/4 v5, 0x2

    if-ne v4, v5, :cond_7

    .line 176
    invoke-virtual {v3}, Les/nj0;->e()J

    move-result-wide v4

    sub-long v4, v1, v4

    const-wide/32 v6, 0x240c8400

    cmp-long v8, v4, v6

    if-ltz v8, :cond_3

    .line 177
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 178
    :cond_3
    invoke-virtual {v3}, Les/nj0;->d()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 179
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 180
    :cond_4
    invoke-static {v3}, Les/cl0;->a(Les/nj0;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 181
    invoke-virtual {v3}, Les/nj0;->m()I

    move-result v4

    const/4 v5, 0x4

    if-ne v4, v5, :cond_5

    .line 182
    invoke-virtual {v3}, Les/nj0;->m()I

    move-result p2

    .line 183
    :cond_5
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3}, Les/nj0;->d()Ljava/lang/String;

    move-result-object v5

    invoke-direct {p0, v4, v5}, Les/pj0;->a(Ljava/lang/String;Ljava/lang/String;)I

    move-result v4

    invoke-direct {p0, v4, p2}, Les/pj0;->a(II)Lorg/json/JSONObject;

    move-result-object v4

    .line 184
    invoke-virtual {v3}, Les/nj0;->k()I

    move-result v5

    invoke-static {v4, v5}, Les/pj0;->a(Lorg/json/JSONObject;I)V

    .line 185
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v5

    invoke-static {v5}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v5

    invoke-virtual {v3}, Les/nj0;->k()I

    move-result v6

    invoke-virtual {v5, v6}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v5

    if-eqz v5, :cond_6

    :try_start_0
    const-string v6, "uninstall_resume_count"

    .line 186
    invoke-virtual {v5}, Les/zn0;->D0()I

    move-result v5

    invoke-virtual {v4, v6, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 187
    :catchall_0
    :cond_6
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v5

    invoke-virtual {v5, v4, v3}, Les/uk0;->b(Lorg/json/JSONObject;Les/nj0;)V

    .line 188
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 189
    invoke-static {v3}, Les/dk0;->a(Les/nj0;)V

    goto/16 :goto_0

    .line 190
    :cond_7
    invoke-virtual {v3}, Les/nj0;->a()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 191
    :cond_8
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object p1

    invoke-virtual {p1, v0}, Les/vj0;->a(Ljava/util/List;)V

    return-void
.end method

.method public static a(Lorg/json/JSONObject;I)V
    .locals 4

    if-nez p0, :cond_0

    return-void

    .line 10
    :cond_0
    invoke-static {p1}, Les/jo0;->a(I)Les/jo0;

    move-result-object p1

    const-string v0, "anti_hijack_report_config"

    .line 11
    invoke-virtual {p1, v0}, Les/jo0;->d(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    if-eqz v0, :cond_3

    :try_start_0
    const-string v1, "report_installer_pkg_name"

    .line 12
    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 13
    invoke-static {v1}, Lcom/ss/android/socialbase/appdownloader/c;->a(Ljava/lang/String;)Lcom/ss/android/socialbase/downloader/m/a$a;

    move-result-object v1

    if-eqz v1, :cond_1

    const-string v2, "installer_package_name"

    .line 14
    invoke-virtual {v1}, Lcom/ss/android/socialbase/downloader/m/a$a;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "installer_version_code"

    .line 15
    invoke-virtual {v1}, Lcom/ss/android/socialbase/downloader/m/a$a;->f()I

    move-result v3

    invoke-virtual {p0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v2, "installer_version_name"

    .line 16
    invoke-virtual {v1}, Lcom/ss/android/socialbase/downloader/m/a$a;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_1
    const-string v1, "report_file_manager_pkg_name"

    .line 17
    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 18
    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/c;->a(Ljava/lang/String;)Lcom/ss/android/socialbase/downloader/m/a$a;

    move-result-object v0

    if-eqz v0, :cond_2

    const-string v1, "file_manager_package_name"

    .line 19
    invoke-virtual {v0}, Lcom/ss/android/socialbase/downloader/m/a$a;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "file_manager_version_code"

    .line 20
    invoke-virtual {v0}, Lcom/ss/android/socialbase/downloader/m/a$a;->f()I

    move-result v2

    invoke-virtual {p0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "file_manager_version_name"

    .line 21
    invoke-virtual {v0}, Lcom/ss/android/socialbase/downloader/m/a$a;->g()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_2
    const-string v0, "rom_version"

    .line 22
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 23
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_3
    :goto_0
    const/4 v0, 0x0

    const-string v1, "report_unknown_source"

    .line 24
    invoke-virtual {p1, v1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    const/4 v1, 0x1

    if-ne p1, v1, :cond_5

    .line 25
    :try_start_1
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->b()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/ss/android/socialbase/appdownloader/c;->a(Landroid/content/Context;)Z

    move-result p1

    const-string v2, "is_unknown_source_enabled"

    if-eqz p1, :cond_4

    const/4 v0, 0x1

    .line 26
    :cond_4
    invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :catchall_1
    :cond_5
    return-void
.end method

.method static synthetic a(Les/pj0;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Les/pj0;->a:Z

    return p1
.end method

.method public static b(Les/zn0;Les/nj0;)Ljava/lang/String;
    .locals 4
    .param p0    # Les/zn0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Les/nj0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 3
    :try_start_0
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    .line 4
    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/d;->a()I

    move-result v3

    invoke-virtual {v1, v0, v3}, Landroid/content/pm/PackageManager;->getPackageArchiveInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 5
    iget-object v0, v0, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-object v2, v0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 6
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 7
    :cond_0
    :goto_0
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 8
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_1
    const-string v1, "real_package_name"

    .line 9
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "input_package_name"

    .line 10
    invoke-virtual {p0}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, v1, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    move-exception p0

    .line 11
    invoke-virtual {p0}, Lorg/json/JSONException;->printStackTrace()V

    .line 12
    :goto_1
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p0

    const-string v1, "embeded_ad"

    const-string v3, "package_name_error"

    invoke-virtual {p0, v1, v3, v0, p1}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-object v2

    .line 13
    :cond_1
    invoke-virtual {p0}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private b(Les/zn0;Lcom/ss/android/socialbase/appdownloader/b;)V
    .locals 3
    .param p1    # Les/zn0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 15
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/vj0;->a(Les/zn0;)Les/nj0;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 16
    :cond_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    .line 17
    invoke-virtual {p2, v1}, Lcom/ss/android/socialbase/appdownloader/b;->a(Lorg/json/JSONObject;)V

    :try_start_0
    const-string p2, "download_id"

    .line 18
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v1, p2, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "name"

    .line 19
    invoke-virtual {p1}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, p2, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p2, "url"

    .line 20
    invoke-virtual {p1}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, p2, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p2

    .line 21
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 22
    :goto_0
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result p1

    invoke-static {v1, p1}, Les/pj0;->a(Lorg/json/JSONObject;I)V

    .line 23
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string p2, "embeded_ad"

    const-string v2, "anti_hijack_result"

    invoke-virtual {p1, p2, v2, v1, v0}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 4
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0xf

    const-wide/16 v1, 0x4e20

    .line 2
    invoke-static {v1, v2}, Landroid/os/SystemClock;->sleep(J)V

    :goto_0
    if-lez v0, :cond_3

    .line 3
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, p1}, Les/cl0;->c(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 4
    invoke-virtual {p0, p1}, Les/pj0;->a(Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    add-int/lit8 v0, v0, -0x1

    if-nez v0, :cond_2

    goto :goto_1

    .line 5
    :cond_2
    invoke-static {v1, v2}, Landroid/os/SystemClock;->sleep(J)V

    goto :goto_0

    :cond_3
    :goto_1
    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 7

    .line 162
    iget-boolean v0, p0, Les/pj0;->a:Z

    if-nez v0, :cond_1

    .line 163
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 164
    iget-wide v2, p0, Les/pj0;->b:J

    sub-long v2, v0, v2

    const-wide/32 v4, 0x2bf20

    cmp-long v6, v2, v4

    if-gez v6, :cond_0

    return-void

    .line 165
    :cond_0
    iput-wide v0, p0, Les/pj0;->b:J

    .line 166
    invoke-static {}, Les/tk0;->c()Les/tk0;

    move-result-object v0

    new-instance v1, Les/pj0$b;

    invoke-direct {v1, p0, p1}, Les/pj0$b;-><init>(Les/pj0;I)V

    invoke-virtual {v0, v1}, Les/tk0;->a(Ljava/lang/Runnable;)V

    :cond_1
    return-void
.end method

.method public a(Les/zn0;JJJJJZ)V
    .locals 10

    move-object v0, p1

    move-wide v1, p2

    .line 199
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v3

    invoke-virtual {v3, p1}, Les/vj0;->a(Les/zn0;)Les/nj0;

    move-result-object v3

    if-nez v3, :cond_0

    .line 200
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 201
    :cond_0
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    const-string v5, "space_before"
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    long-to-double v6, v1

    const-wide/high16 v8, 0x4130000000000000L    # 1048576.0

    .line 202
    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v6, v8

    :try_start_1
    invoke-static {v6, v7}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "space_cleaned"
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    sub-long v1, p4, v1

    long-to-double v1, v1

    .line 203
    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v1, v8

    :try_start_2
    invoke-static {v1, v2}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v4, v5, v1}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "clean_up_time_cost"

    .line 204
    invoke-static/range {p8 .. p9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v4, v1, v2}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "is_download_restarted"

    if-eqz p12, :cond_1

    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    .line 205
    :goto_0
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v4, v1, v2}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "byte_required"

    .line 206
    invoke-static/range {p6 .. p7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v4, v1, v2}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "clear_sleep_time"

    .line 207
    invoke-static/range {p10 .. p11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v4, v1, v2}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 208
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v1

    invoke-virtual {v1, p1, v4}, Les/uk0;->a(Les/zn0;Lorg/json/JSONObject;)V

    .line 209
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v0

    const-string v1, "embeded_ad"

    const-string v2, "cleanup"

    invoke-virtual {v0, v1, v2, v4, v3}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 210
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    return-void
.end method

.method public a(Les/zn0;Lcom/ss/android/socialbase/appdownloader/b;)V
    .locals 2

    if-eqz p1, :cond_1

    if-nez p2, :cond_0

    goto :goto_0

    .line 192
    :cond_0
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const-string v1, "anti_hijack_report_config"

    .line 193
    invoke-virtual {v0, v1}, Les/jo0;->d(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 194
    invoke-direct {p0, p1, p2}, Les/pj0;->b(Les/zn0;Lcom/ss/android/socialbase/appdownloader/b;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public declared-synchronized a(Ljava/lang/String;)V
    .locals 3
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    monitor-enter p0

    .line 48
    :try_start_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 49
    monitor-exit p0

    return-void

    .line 50
    :cond_0
    :try_start_1
    invoke-static {}, Les/cl0;->a()Z

    move-result v0

    if-nez v0, :cond_6

    .line 51
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/vj0;->a(Ljava/lang/String;)Les/nj0;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 52
    iget-object v1, v0, Les/nj0;->q:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result v1

    if-eqz v1, :cond_1

    goto :goto_0

    .line 53
    :cond_1
    invoke-virtual {p0, p1, v0}, Les/pj0;->a(Ljava/lang/String;Les/nj0;)V

    .line 54
    invoke-static {}, Les/sj0;->a()Les/sj0;

    move-result-object v1

    invoke-virtual {v1, p1, v0}, Les/sj0;->a(Ljava/lang/String;Les/nj0;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 55
    invoke-static {}, Les/sj0;->a()Les/sj0;

    move-result-object v1

    invoke-virtual {v1, p1}, Les/sj0;->a(Ljava/lang/String;)V

    .line 56
    :cond_2
    invoke-static {}, Les/fl0;->a()Les/fl0;

    move-result-object v1

    invoke-virtual {v0}, Les/nj0;->q()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Les/fl0;->a(Ljava/lang/String;)Les/hk0;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 57
    invoke-virtual {v0}, Les/hk0;->e()V

    .line 58
    :cond_3
    invoke-static {}, Les/qj0;->a()Les/qj0;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/qj0;->b(Ljava/lang/String;)V

    .line 59
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    const-string v1, "application/vnd.android.package-archive"

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->b(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 60
    invoke-static {v0, p1}, Les/pj0;->a(Ljava/util/List;Ljava/lang/String;)Les/zn0;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 61
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object v1

    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/ss/android/socialbase/downloader/notification/b;->a(I)V

    .line 62
    invoke-static {}, Les/fl0;->a()Les/fl0;

    move-result-object v1

    invoke-virtual {v1, v0, p1}, Les/fl0;->b(Les/zn0;Ljava/lang/String;)V

    .line 63
    invoke-static {v0}, Les/dk0;->a(Les/zn0;)V

    goto :goto_1

    .line 64
    :cond_4
    invoke-static {}, Les/fl0;->a()Les/fl0;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Les/fl0;->b(Les/zn0;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    .line 65
    :cond_5
    :goto_0
    monitor-exit p0

    return-void

    .line 66
    :cond_6
    :try_start_2
    new-instance p1, Ljava/lang/RuntimeException;

    const-string v0, "handleAppInstalled in main thread."

    invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    .line 67
    :try_start_3
    invoke-static {p1}, Les/cl0;->a(Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 68
    :goto_1
    monitor-exit p0

    return-void

    :goto_2
    monitor-exit p0

    throw p1
.end method

.method public a(Ljava/lang/String;J)V
    .locals 3

    .line 142
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v0

    const-string v1, "check_hijack"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 143
    :cond_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-gtz v2, :cond_1

    goto :goto_0

    .line 144
    :cond_1
    invoke-static {}, Les/tk0;->c()Les/tk0;

    move-result-object v0

    new-instance v1, Les/pj0$a;

    invoke-direct {v1, p0, p1, p2, p3}, Les/pj0$a;-><init>(Les/pj0;Ljava/lang/String;J)V

    invoke-virtual {v0, v1}, Les/tk0;->a(Ljava/lang/Runnable;)V

    :cond_2
    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;Les/nj0;)V
    .locals 4

    if-nez p2, :cond_0

    return-void

    .line 69
    :cond_0
    invoke-static {p2}, Les/cl0;->a(Les/nj0;)Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    .line 70
    :cond_1
    iget-object v0, p2, Les/nj0;->q:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 71
    invoke-virtual {p2}, Les/nj0;->m()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_2

    goto :goto_0

    :cond_2
    const/4 v1, 0x3

    .line 72
    :goto_0
    invoke-virtual {p2}, Les/nj0;->a()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0, p1}, Les/pj0;->a(Ljava/lang/String;Ljava/lang/String;)I

    move-result p1

    invoke-direct {p0, p1, v1}, Les/pj0;->a(II)Lorg/json/JSONObject;

    move-result-object p1

    .line 73
    invoke-virtual {p2}, Les/nj0;->k()I

    move-result v0

    invoke-static {p1, v0}, Les/pj0;->a(Lorg/json/JSONObject;I)V

    .line 74
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    invoke-virtual {p2}, Les/nj0;->k()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v0

    if-eqz v0, :cond_3

    :try_start_0
    const-string v1, "uninstall_resume_count"

    .line 75
    invoke-virtual {v0}, Les/zn0;->D0()I

    move-result v2

    invoke-virtual {p1, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_1

    :catchall_0
    nop

    .line 76
    :goto_1
    invoke-virtual {v0}, Les/zn0;->I0()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "anti_hijack_attempt"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 77
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 78
    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/b;->a(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/b;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 79
    invoke-virtual {v0, p1}, Lcom/ss/android/socialbase/appdownloader/b;->a(Lorg/json/JSONObject;)V

    .line 80
    :cond_3
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v0

    invoke-virtual {p2}, Les/nj0;->o()Ljava/lang/String;

    move-result-object v1

    const-string v2, "install_finish"

    invoke-virtual {v0, v1, v2, p1, p2}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    .line 81
    invoke-static {}, Les/xj0;->b()Les/xj0;

    move-result-object p1

    invoke-virtual {p1, p2}, Les/xj0;->a(Les/nj0;)V

    :cond_4
    return-void
.end method

.method public b()V
    .locals 1

    const/4 v0, 0x5

    .line 14
    invoke-virtual {p0, v0}, Les/pj0;->a(I)V

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    .line 24
    invoke-static {}, Les/tk0;->c()Les/tk0;

    move-result-object v0

    new-instance v1, Les/pj0$c;

    invoke-direct {v1, p0, p1}, Les/pj0$c;-><init>(Les/pj0;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Les/tk0;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public c()V
    .locals 1

    const/4 v0, 0x6

    .line 6
    invoke-virtual {p0, v0}, Les/pj0;->a(I)V

    return-void
.end method
